package com.zhinong.mapper;

import com.github.pagehelper.Page;
import com.zhinong.dto.FarmPageQueryDTO;
import com.zhinong.entity.Farm;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface FarmMapper {
    Page<Farm> pageQuery(FarmPageQueryDTO farmPageQueryDTO);


    @Select("select * from farm where id = #{id}")
    Farm getById(Long id);

    @Delete("delete from fram where id = #{id}")
    void deleteById(Long id);

    void update(Farm farm);
}
